package com.minhua.jijiehao2.mainframe.mine.usercenteractivity.impl

import com.minhua.jijiehao2.mainframe.mine.usercenteractivity.imp.IUserCenterPresenter
import com.minhua.jijiehao2.mainframe.mine.usercenteractivity.imp.IUserCenterView
import com.minhua.jijiehao2.base.BaseMvpPresenter
import com.minhua.jijiehao2.bean.BaseBean
import com.minhua.jijiehao2.http.CallBack
import com.minhua.jijiehao2.http.ParamsMap

class UserCenterPresenter : BaseMvpPresenter<IUserCenterView>(), IUserCenterPresenter {

    private val mUserCenterModel = UserCenterModel()

    override fun loginOut() {
        val  map = ParamsMap()
        mUserCenterModel.logout(map,object:CallBack<Any>(){
            override fun onSuccess(t: BaseBean<Any>) {
                v?.onLogout()
            }
        })
    }
}